FROM centos:7
RUN yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel -y
ENV JAVA_HOME /usr/lib/jvm/java
RUN echo "export JAVA_HOME=$JAVA_HOME" >> /etc/profile
ENV PATH $JAVA_HOME/bin:$PATH
RUN echo "export PATH=$PATH" >> /etc/profile
EXPOSE 9999
